-- GENERATED SPELL FOR [Scarlet Crusader] --


function spell0_28940(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(52221,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28940', 565, 1)
end

function spell1_28940(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(52818,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28940', 605, 1)
end

function Sorts_28940(pUnit, Event)
local choix_sorts_28940 = math.random(0, 1)
if choix_sorts_28940 == 0 then
pUnit:RegisterEvent('spell0_28940', 1, 1)
end
if choix_sorts_28940 == 1 then
pUnit:RegisterEvent('spell1_28940', 1, 1)
end
end

function mob28940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28940', math.random(1500, 3000), 1)
end

function mob28940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28940, 1, 'mob28940_Action')
RegisterUnitEvent(28940, 2, 'mob28940_Leave')
RegisterUnitEvent(28940, 3, 'mob28940_Kill')
RegisterUnitEvent(28940, 4, 'mob28940_Die')
